package common



import (
    "sync"
)

type Task struct {
    Name        string
    StartTimeMs uint64
    Finished    bool
    mu          sync.RWMutex
}

func NewTask(name string) *Task {
    return &Task{
        Name:        name,
        StartTimeMs: NowMillisecond(),
        Finished:    false,
    }
}

func (t *Task) Cancel(waitUntilFinished bool) {
    //TODO
}
